RG_AddSimPostInit(function(inst)
	if GetClock().numcycles == 0 and GetClock():GetNormTime() == 0 then
		if not inst.components.rg_start_inv then
			inst.components.rg_start_inv = {}
		end
		table.insert(inst.components.rg_start_inv, "rg_backpack_start_inv")

		for _,v in ipairs(inst.components.rg_start_inv)do
			local item = SpawnPrefab(v)
			assert(item ~= nil, "Fail to spawn: "..v)

			if item.prefab == "rg_backpack" then
				item:SetPlayer(inst)
			elseif item.components.inventoryitem then
				inst.components.inventory:GiveItem(item)
			end 
		end
	end

	inst:AddComponent("rg_playerskill")

	inst.components.hunger.burning = false
	inst.components.hunger.hungerrate = 0
	inst.components.hunger.DoDelta = function() return true end
	inst.components.hunger.DoDec = function() return true end

	inst.components.sanity.DoDelta = function() return true end
end)

RG_AddClassPostConstruct("widgets/statusdisplays", function(self)
	if self.stomach then
		self.stomach:Hide()
		self.stomach:SetScale(0)
	end
	self.HungerDelta = function() return true end
end) 

modimport "sg/SGdodge"

